creating n array of objects based on dynamic number

welcome to shbcf.ru